VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form DLGupdating 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Updating Database..."
   ClientHeight    =   855
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5070
   ControlBox      =   0   'False
   BeginProperty Font 
      Name            =   "Verdana"
      Size            =   8.25
      Charset         =   0
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   57
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   338
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin MSComctlLib.ProgressBar ProgressBar 
      Height          =   300
      Left            =   120
      TabIndex        =   1
      Top             =   450
      Width           =   4815
      _ExtentX        =   8493
      _ExtentY        =   529
      _Version        =   393216
      Appearance      =   1
      Scrolling       =   1
   End
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   500
      Left            =   4680
      Top             =   0
   End
   Begin VB.Label LBLmessage 
      BackStyle       =   0  'Transparent
      Caption         =   "Please wait while the remote database is updated"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   180
      Width           =   4575
   End
End
Attribute VB_Name = "DLGupdating"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private iArrayIndex As Integer

Private aCaptions As Variant

Public Sub init(sTitle As String, sMessage As String, cModal As Variant)

    On Error Resume Next

    Caption = sTitle

    LBLmessage.Caption = sMessage

    Timer1.Enabled = True
    
    aCaptions = Array( _
        sTitle, _
        sTitle & ".", _
        sTitle & "..", _
        sTitle & "...")

    Show cModal

    End Sub

Public Sub terminate()
    
    On Error Resume Next
    
    Timer1.Enabled = False
    
    Unload Me

End Sub

Private Sub Form_LostFocus()

    SetFocus

End Sub

Private Sub Timer1_Timer()
    
    On Error Resume Next
    
     Caption = aCaptions(iArrayIndex)
     
     If iArrayIndex < UBound(aCaptions) Then
     
        iArrayIndex = iArrayIndex + 1
        
    Else
    
        iArrayIndex = 0
        
    End If
    
End Sub
